"""
This module contains the MyClassA class and some utility functions.

"""
from auto_generate import export_to_docs


class MyClassA:
    """
    MyClassA demonstrates a basic class with attributes and methods.

    Attributes:
        attr1 (str): Description of attr1.
        attr2 (int): Description of attr2.
    """

    def __init__(self, attr1, attr2):
        """
        Initialize MyClassA with attr1 and attr2.

        Args:
            attr1 (str): The first attribute.
            attr2 (int): The second attribute.
        """
        self.attr1 = attr1
        self.attr2 = attr2

    @export_to_docs
    def method_a(self):
        """
        A sample method in MyClassA.

        Returns:
            str: A string message from MyClassA.
        """
        return f"MyClassA with attr1: {self.attr1} and attr2: {self.attr2}"


def utility_function_a(param):
    """
    A utility function that performs an action.

    Args:
        param (str): A parameter for the function.

    Returns:
        str: A message with the provided parameter.
    """
    return f"Utility function A received: {param}"
